package com.cg.entity;

import java.time.LocalDate;

public class Product {
    private Integer id;
    private String itemCode;
    // 商品描述
    private String productDesc;
    // 商品链接
    private String productUrl;
    // 库存
    private Integer stock;
    // 监控数量
    private Integer monitorNum;
    // 监控类型：1 大于 2 小于'
    private String monitorType;
    // 脚本运行状态
    private String status;
    // 代理状态
    private String isProxy;
    // 消息日志
    private String msg;
    // 创建时间
    private LocalDate createTime;
    // 更新时间
    private LocalDate updateTime;

    public Product() {
    }

    public Product(Integer id, String itemCode, String productDesc, String productUrl, Integer stock, Integer monitorNum, String monitorType, String status, String isProxy, String msg, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.itemCode = itemCode;
        this.productDesc = productDesc;
        this.productUrl = productUrl;
        this.stock = stock;
        this.monitorNum = monitorNum;
        this.monitorType = monitorType;
        this.status = status;
        this.isProxy = isProxy;
        this.msg = msg;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIsProxy() {
        return isProxy;
    }

    public void setIsProxy(String isProxy) {
        this.isProxy = isProxy;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getProductUrl() {
        return productUrl;
    }

    public void setProductUrl(String productUrl) {
        this.productUrl = productUrl;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getMonitorNum() {
        return monitorNum;
    }

    public void setMonitorNum(Integer monitorNum) {
        this.monitorNum = monitorNum;
    }

    public String getMonitorType() {
        return monitorType;
    }

    public void setMonitorType(String monitorType) {
        this.monitorType = monitorType;
    }

    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    public LocalDate getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", itemCode='" + itemCode + '\'' +
                ", productDesc='" + productDesc + '\'' +
                ", productUrl='" + productUrl + '\'' +
                ", stock=" + stock +
                ", monitorNum=" + monitorNum +
                ", monitorType='" + monitorType + '\'' +
                ", status='" + status + '\'' +
                ", isProxy='" + isProxy + '\'' +
                ", msg='" + msg + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
